<!DOCTYPE html>
<html>
<head>
    <title>终端列表</title>
    <#include "/header.html">
    <link type="text/css" rel="stylesheet" href="${request.contextPath}/statics/plugins/layui/css/layui.css">
    <style>
        th {
            text-align: center;
        }

        .form-control {
            margin-left: 5px;
        }
    </style>
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
            <form class="form-inline">

                <div class="form-group ">
                    <input type="text"  class="form-control" v-model="q.sn"
                           placeholder="请输入SN" >
                    <input type="text"  class="form-control" v-model="q.name"
                           placeholder="请输入冻结人" >
                    <input type="text"  class="form-control" v-model="q.phone"
                           placeholder="请输入手机号码" >
                    <input type="button" class="btn btn-default form-control" @click="query" value="查询"/>
                    <input type="button" class="btn btn-default form-control" @click="getById" value="修改"/>
                    <input type="button" class="btn btn-default form-control" @click="refresh" value="刷新"/>
                    <input type="button" class="btn btn-default form-control" @click="add" value="添加"/>
                </div>
            </form>

        </div>
        <table id="jqGrid"></table>

        <div id="jqGridPager"></div>
    </div>


    <div v-show="showUpdate" class="panel panel-default">
        <form class="form-horizontal">
            <div class="form-group" >
                <div class="col-sm-2 control-label"> id</div>
                <div class="col-sm-8">
                    <input type="text"  class="form-control" v-model.trim="frozen.countId" readonly="readonly"/>
                </div>
            </div>
            <div class="form-group" >
                <div class="col-sm-2 control-label">sn</div>
                <div class="col-sm-8">
                    <input type="text"  class="form-control" v-model.trim="frozen.sn" readonly="readonly"/>
                </div>
            </div>

            <div class="form-group">
                <div class="col-sm-2 control-label">冻结金额:</div>
                <div class="col-sm-8">
                    <input type="text"  class="form-control" v-model.trim="frozen.amount"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" @click="update" value="确定"/>
                <input type="button" class="btn btn-primary" @click="reload" value="返回"/>

            </div>
        </form>
    </div>


    <div v-show="showAdd" class="panel panel-default">
        <form class="form-horizontal">
            <div class="form-group" >
                <div class="col-sm-2 control-label">姓名</div>
                <div class="col-sm-8">
                    <input type="text"  class="form-control" v-model.trim="newFrozen.name"/>
                </div>
            </div>
            <div class="form-group" >
                <div class="col-sm-2 control-label">手机号码</div>
                <div class="col-sm-8">
                    <input type="text"  class="form-control" v-model.trim="newFrozen.phone"/>
                </div>
            </div>
            <div class="form-group" >
                <div class="col-sm-2 control-label">sn</div>
                <div class="col-sm-8">
                    <input type="text"  class="form-control" v-model.trim="newFrozen.sn"/>
                </div>
            </div>
            <div class="form-group" >
                <div class="col-sm-2 control-label">机具类型</div>
                <div class="col-sm-8">
                    <select v-model.trim="newFrozen.terminalType" class="form-control">
                        <option v-for="ter in this.terminalTypes" :value="ter.terminalType">{{ter.terminalName}}
                        </option>
                    </select>
                </div>
            </div>
            <div class="form-group" >
                <div class="col-sm-2 control-label">型号</div>
                <div class="col-sm-8">
                    <input type="text"  class="form-control" v-model.trim="newFrozen.model"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" @click="save" value="确定"/>
                <input type="button" class="btn btn-primary" @click="reload" value="返回"/>

            </div>
        </form>
    </div>

</div>


<script src="${request.contextPath}/statics/js/modules/terminal/frozen.js?_${.now?long}"></script>
<script src="${request.contextPath}/statics/plugins/layui/layui.js"></script>
<script>

</script>
</body>
</html>